<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://minglie.gitee.io/ming_hyperlink_manage/public/easyui/js/jquery.min.js"></script>
    
    <script src="http://mockjs.com/dist/mock.js"></script>
</head>
<body>
    
<script>
   
//0
ss=Mock.mock(
    {'name|3':'lz','age|20-60':25}
)
console.log("ss",ss)

//1   
Mock.mock(
    'http://www.bai.com',
    {'name|3':'lz','age|20-60':25}
)
 
 

//2 
Mock.mock('/aaa',"get",(options)=>{
    console.log(options)
    return {"name":25}
})


//3
$.ajax({
    url:'http://www.bai.com',
    dataType:'json',
    success:function(data){
        console.log(data)
    }
})
</script>




    
</body>
</html>